package 每日练习;

import java.util.Scanner;

//
public class text19 {
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入月份(1~12)");
        int month = sc.nextInt();
        System.out.println("请输入日期(1~31)");
        int day = sc.nextInt();
        int sum = 0;

        switch(month)
        {
            case 12:
                sum += 31;
            case 11:
                sum += 31;
            case 10:
                sum += 30;
            case 9:
                sum += 31;
            case 8:
                sum += 31;
            case 7:
                sum += 30;
            case 6:
                sum += 31;
            case 5:
                sum += 30;
            case 4:
                sum += 31;
            case 3:
                sum += 28;
            case 2:
                sum += 31;
            case 1:
                sum +=0;
                break;
            default:
                System.out.println("输入月份不合法");
        }
        sum += day;
        System.out.println("2019年的"+month+"月"+day+"日是2019年的第"+sum+"天");
    }
}
